#ifndef __POINT_H_
#define __POINT_H_

#include "term.h"

typedef struct _Point
{
	_Point(){}
	_Point(int _x, int _y, unsigned int _color = GREEN, bool _pass = 1)
	:x(_x), y(_y), color(_color), pass(_pass)
	{}
	_Point& operator = (const _Point& obj)
	{
		x = obj.x;
		y = obj.y;
		color = obj.color;
		pass = obj.pass;
		return *this;
	}
	bool operator== (_Point const& obj) const
	{
		return x == obj.x && y == obj.y;
	}

	int		x;
	int		y;
    unsigned int color;
	bool	pass;		// 1 pass | 0 not pass
	bool	output = 0;
}Point, *PPoint;
#endif
